import { Entity, Column, PrimaryGeneratedColumn,PrimaryColumn } from 'typeorm';

@Entity('classics',{
  comment:"经典文表"
})
export class Classics {
  @Column({ default: "" })
  id: string;

  @PrimaryColumn()
  poetry_id: string;

  @Column({ default: "" })
  author: string;

  @Column({ default: "" })
  title: string;

  @Column({ default: "" })
  chapter: string;

  @Column({ default: "" })
  type: string;

  @Column({ default: "" })
  type_name: string;

  @Column({ type:"text" })
  preface: string;//前言

  @Column({ type:"mediumtext" })
  content: string;

  @Column({ type:"text" })
  paragraphs:string;//段落

  @Column({ type:"text" })
  origin:string; //起源

  @Column({ type:"text" })
  abstract:string; //摘要

  @Column({ type:"text"})
  spells:string; //咒语


  @Column({type:"text" })
  prologue:string;//前言

  @Column({ default: "" })
  tags:string; //标签

  @Column({ type:"text" })
  notes:string; //注释
}